<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<?php echo MAIN_URL;?>css/style.css" type="text/css" rel="stylesheet">
<link rel="icon" type="image/ico" href="<?php echo MAIN_URL;?>images/favicon.ico"></link> 
<title>Java Tution learn to success</title>
<link rel="icon" type="image/ico" href="<?php echo MAIN_URL;?>images/favicon.ico"></link> 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script src="<?php echo MAIN_URL;?>js/easypaginate.js"></script>
<script src="<?php echo MAIN_URL;?>js/coursesyllabusdetails.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<?php echo MAIN_URL;?>css/style.css" type="text/css" rel="stylesheet">
<link href="<?php echo MAIN_URL;?>css/paging.css" type="text/css" rel="stylesheet">
<link rel="icon" type="image/ico" href="<?php echo MAIN_URL;?>images/favicon.ico"></link> 
 
 	<script type="text/javascript">
	
jQuery(function($){
	
	$('ul#items').easyPaginate({
		step:1
	});
	
});    </script><script>
                     $(document).ready(function(){ 
	  
                $("#assgnmtsub_button").click(function() {

                updateassignmentstatus("submitattemptedassignment");
				});
			 });
    </script>
</head>
<body>
 
 
<?php

 if($assignmentquest!=""){
	 
	 $mainurl=MAIN_URL;
 $counter=1;
 
 echo'<ul id="items">';
 
 
foreach ($assignmentquest->result() as $row)
            {
	 echo "<li><p>Que ".$counter.": ".$row->question."</p>";
 
	if($row->multiplechoice=="1")
				{
 echo '<p>Opt 1<Input type = "checkbox" Name ="result" value="1,'.$row->id.','.$assignmentrowid.'"  ">'.$row->opt1.'</p>';
 echo '<p>Opt 2<Input type = "checkbox" Name ="result" value="2,'.$row->id.','.$assignmentrowid.'"  ">'.$row->opt2.'</p>';
 echo '<p>Opt 3<Input type = "checkbox" Name ="result" value="3,'.$row->id.','.$assignmentrowid.'"  ">'.$row->opt3.'</p>';
 echo '<p>Opt 4<Input type = "checkbox" Name ="result" value="4,'.$row->id.','.$assignmentrowid.'"  ">'.$row->opt4.'</p>';
 echo '<p>Opt 5<Input type = "checkbox" Name ="result"  value="5,'.$row->id.','.$assignmentrowid.'"  ">'.$row->opt5.'</p>';
				}

				else{
				
  echo '<p>Opt 1<Input type = "Radio" Name ="result" value="1,'.$row->id.','.$assignmentrowid.'"  ">'.$row->opt1.'</p>';
  echo '<p>Opt 2<Input type = "Radio" Name ="result" value="2,'.$row->id.','.$assignmentrowid.'"  ">'.$row->opt2.'</p>';
  echo '<p>Opt 3<Input type = "Radio" Name ="result" value="3,'.$row->id.','.$assignmentrowid.'"  ">'.$row->opt3.'</p>';
  echo '<p>Opt 4<Input type = "Radio" Name ="result" value="4,'.$row->id.','.$assignmentrowid.'"  ">'.$row->opt4.'</p>';
  echo '<p>Opt 5<Input type = "Radio" Name ="result" value="5,'.$row->id.','.$assignmentrowid.'"  ">'.$row->opt5.'</p>';
				}
 $counter++;
 echo'</li>';
			}
 
 echo'</ul>';
 }
  
?>
<input type="hidden" value="<?php echo $assignmentrowid;?>" name="assgnmentid" id="assgnmentid">
<input type="hidden" value="<?php echo $userid;?>" name="userid" id="userid">
  <div style="height: 30px; margin-top:20px;">
  <input value="Submit" type="button" id="assgnmtsub_button">
  </div>
</body>
</html>
                   